package com.lk.lkappearance.mapper;

import com.lk.lkappearance.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(String userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String userId);

    /**
     * 查看列表
     *
     * @param user
     * @return
     */
    List<User> getList(User user);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    Integer onlineNum();
}